	function countTime() {  
         //获取当前时间  
         var date = new Date();  
         var now = date.getTime();  
         //设置截止时间  
         var str="${StartTime}";
         var endDate = new Date(str); 
         var end = endDate.getTime();  
         
         //时间差  
         var leftTime = end-now; 
         //定义变量 d,h,m,s保存倒计时的时间  
         var h,m,s;  
         if (leftTime>=0) {  
             h = Math.floor(leftTime/1000/60/60);  
             m = Math.floor(leftTime/1000/60%60);  
             s = Math.floor(leftTime/1000%60);                     
         }  
         //将倒计时赋值到div中  
         $(".RemainH").html(h);
         $(".RemainM").html(m);
         $(".RemainS").html(s);
        
         //递归每秒调用countTime方法，显示动态时间效果  
         setTimeout(countTime,1000); 
	}
	/*function updateRoomState(objs){
		  //console.log("调用");
		  objs.forEach((t, i) => {
              if(t.state ==="0"){
            	  console.log("0");
                 $("#Room"+t.id).css("background", "#f2d975");
              }else if(t.state==="1"){
            	  console.log("1");
                 $("#Room"+t.id).css("background", "#479df4");
              }else {
            	  console.log("2");
                 $("#Room"+t.id).css("background", "#ee0000");
              }                 
         });
	}  */
	function loadFangYuan(){//加载房源
				console.log("fangyuan");
				var index = layer.load(1, {
		            shade: [0.1,'#fff'] //0.1透明度的白色背景
		        });
				$("#commonBody").load("/fangyuan/indexData",function(){
					layer.close(index);
					ldgd();
					dygd();
				});
	}
	function loadDingDan(){//加载订单
				console.log("dingdan");
				$("#commonBody").load("/dingdan/indexData");
	}
	function loadShouCang(){//加载收藏
				console.log("ShouCang");
				$("#commonBody").load("/shoucang/indexData");
	}
	function getDanYuan(name){ //加载单元
				console.log(name);
				$("#danyuan").load("/fangyuan/getDanYuan?name="+name,function(){
					dygd();//
				});
				
			}
			
	function getTaoXing(loudongName,danyuanName){//加载房源
				console.log(loudongName);
				console.log(danyuanName);
				$("#taoxing").load("/fangyuan/getTaoXing?loudongName="+loudongName+"&danyuanName="+danyuanName);
	}
		 <!--楼栋更多-->
			function ldgd(){//楼栋更多设置 
				//var ldgd=${ldgd};
				if(ldgd===0){

				}else{
					$("#loudong2").after('<div class="lmore"><a href="#" id="ldgd">更多</a></div>');
					$(".pua").each(function(i){
						if(i>2){
	   						this.style = "display:none";
						}
	 				});
					$('#ldgd').live('click', function () {
						if($(this).html()==="更多"){
							$(".pua").each(function(i){
								if(i>2){
									this.style = "display:block";
								}
							});
							$(this).html("收起");
						}else{
							$(".pua").each(function(i){
								if(i>2){
									this.style = "display:none";
								}
							});
							$(this).html("更多");
						}
		    		});				
				}
			}
			
			<!--单元更多-->
			function dygd(){//单元更多设置
				//var dygd=${dygd};
				if(dygd===0){

				}else{
					$("#danyuan2").after('<div class="lmore"><a href="#" id="dygd">更多</a></div>');
					$(".dua").each(function(i){
						if(i>2){
	   						this.style = "display:none";
						}
	 				});
					$('#dygd').live('click', function () {
						if($(this).html()==="更多"){
							$(".dua").each(function(i){
								if(i>2){
									this.style = "display:block";
								}
							});
							$(this).html("收起");
						}else{
							$(".dua").each(function(i){
								if(i>2){
									this.style = "display:none";
								}
							});
							$(this).html("更多");
						}
		    		});				
				}
			}